/*
 * Copyright (C) 2011  John Lawrence thegordo.john at gmail.com
 * Licensed under GPLv3 or later. see http://www.gnu.org/copyleft/gpl.html
 */

package org.jklawrencefam.server.smtp;

/**
 * User: John Lawrence
 * Date: 5/20/11
 * Time: 12:30 AM
 */
public enum SmtpCode {
    READY(220, "Ready"),
    BYE(221, "Closing Connection"),
    OK(250, "OK"),
    DATA(354, "Ok to send data"),
    ERROR(500, "Unrecognized command or invalid syntax"),
    UNIMPLEMENTED(502, "Command is not implemented"),;
    private int code;
    private String message;

    SmtpCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
